@page "/favorite"
@inject IFavoriteStorage _favoriteStorage
@inject IPoetryStorage _poetryStorage
@inject INavigationService _navigationService

@foreach (var poetryFavorite in _poetryFavorites) {
    <div @onclick="() => OnClick(poetryFavorite.Poetry)">
        <Card>
            <BodyTemplate>
                <span style="font-weight: bold; color: #0078d4">@poetryFavorite.Poetry.Name</span>
                <div class="shim-2xs"></div>
                @poetryFavorite.Poetry.Dynasty @poetryFavorite.Poetry.Author
                <div class="shim-2xs"></div>
                @poetryFavorite.Poetry.Content.Substring(0, poetryFavorite.Poetry.Content.IndexOf("。"))……
            </BodyTemplate>
        </Card>
    </div>
    <div class="shim-xl"></div>
}
<div id="observerTarget">
    @_status
</div>
<div class="shim-xl"></div>